﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
//using Stiline.DAL.Repositories;
using Stiline.Web.Models.Account;

namespace Stiline.Web.Controllers
{

    [Authorize]
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {   
            return View();
        }

        [AllowAnonymous]
        public ActionResult UserInfo()
        {
            var user = Membership.GetUser();
            var userInfo = new UserInfoModel(user, user != null);
            return PartialView(userInfo);
        }

    }
}
